﻿
using Baosight.ZNH.ZMCommon;
using System;
using System.Windows;
using System.Windows.Controls;
using Baosight.Platform.Core;
using System.Collections.Generic;
using Baosight.ZNH.ZMCM.UI.ChildWindows;
using Baosight.ZNH.ZMCommon.ChildWindows;
using Telerik.Windows.Controls;
namespace Baosight.ZNH.ZMCM.UI
{
    /// <summary>
    /// 初始数据从表  
    /// </summary>
    /// Title:ZMCMJ6
    /// Copyright:Baosight Software LTD.co Copyright (c) 2011
    /// Company:上海宝信软件股份有限公司
    /// Author: 王堃
    /// Version: 1.0
    /// History:
    ///       2011-12-22 15:34:21  王堃   [创建]
    ///
    public partial class ZMCMJ6 : EFViewCmes
    {
        public ZMCMJ6()
        {
            InitializeComponent();
            this.BeforeAction += OnBeforeAction;
        }

        /// <summary>
        /// 新增/修改前设置属性
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void OnBeforeAction(object sender, EventArgs e)
        {
            EFViewCmesProperty _view = new EFViewCmesProperty();
            _view.EFGridCheckedRows = this.sub_grid.GetCheckedEIRows();
            _view.Args.Add("fdMaterialId", this.fdMaterialId.Value.ToString());
            base.ViewProperty = _view;
        }
    }
}

